package org.gd.hellojaxb.adapters;

import javax.xml.bind.annotation.adapters.XmlAdapter;

public class StringAdaptersFactory {

    public static final class String extends XmlAdapter<java.lang.String, Object> {
        @Override
        public Object unmarshal(java.lang.String v) throws Exception {
            return v;
        }
        @Override
        public java.lang.String marshal(Object v) throws Exception {
            if(v == null) {
                return null;
            }
            return java.lang.String.valueOf(v);
        }
    }
}
